package com.ruoyi.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 点赞对象 blog_like
 * 
 * @author tina
 * @date 2021-06-27
 */
public class BlogLike extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private Long id;

    /** 喜欢ID */
    @Excel(name = "喜欢ID")
    private Long likeId;

    /** 文章ID */
    @Excel(name = "文章ID")
    private Long articleId;

    /** 喜欢类型(0文章,1评论) */
    @Excel(name = "喜欢类型(0文章,1评论)")
    private Long type;

    /** 地址 */
    @Excel(name = "地址")
    private String location;

    /** 系统 */
    @Excel(name = "系统")
    private String os;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String ip;

    /** 状态(0正常,1取消) */
    @Excel(name = "状态(0正常,1取消)")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLikeId(Long likeId) 
    {
        this.likeId = likeId;
    }

    public Long getLikeId() 
    {
        return likeId;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setOs(String os) 
    {
        this.os = os;
    }

    public String getOs() 
    {
        return os;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("likeId", getLikeId())
            .append("articleId", getArticleId())
            .append("type", getType())
            .append("location", getLocation())
            .append("os", getOs())
            .append("ip", getIp())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
